module 	IMEM(
    input			    clk,
    input			    rst_n,
    input		    	ena,
    input	    [9:0]	addr,
    output reg	[31:0]  Instr_IF			
);  parameter zero = 32'd0;
    reg [31:0] imem [0:1024] ;
    integer  i;
initial begin
    for ( i=64 ;i<=1024 ;i=i+1 ) begin
        imem[i]=32'd0;
    end
    $readmemh("C:/Users/lenovo/Desktop/Files/Linear_RISCV/LR_ver_0/src/include/IMEM.txt",imem,0,63);
end
    always@(posedge clk or negedge rst_n)  begin
            if(!rst_n)begin
                Instr_IF<=zero;
            end
            else begin
                Instr_IF<=ena?imem[addr]:Instr_IF;
            end
    end
endmodule